package com.shop.admin.validate.question;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("试题选项参数")
public class QuestionOptionValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value="内容")
    private String text;

    @ApiModelProperty(value = "是否正确选项")
    private Boolean correct;
}
